package com.hongguowei.optimize;

import ch.qos.logback.core.joran.action.ConversionRuleAction;

public class weiStatement {


    public static void main(String[] args) {
        test1();
//        test2();

}
    public static  void   test1(){
        String a = "a";
        String b = "a";
        String c = "a";
        String d = "a";
        if (a == b){
            if (a == c){
                if (a != d){
                    System.out.println(a+"ccc");
                }
            }
            System.out.println(b+"bbbb");
        }
        System.out.println(d+"dddd");
    }
    public static  void   test2(){
        String a = "a";
        String b = "a";
        String c = "a";
        String d = "a";
        if (a != b){
            System.out.println(d+"dddd");
        }
        if (a != c){
                System.out.println(b+"bbbb");
        }
        if (a != d){
                    System.out.println(c+"ccc");
        }
        if (a == b && a == d){
            System.out.println(a+"aaaa");
        }else {
            System.out.println("无");
        }

    }


}